#!/bin/bash

# Get the path from uci
uci_path=$(uci get wireless.radio1.path)

# Compare the obtained path with the specified string
if [ "$uci_path" = "scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb2/2-2/2-2:1.0" ]; then
  # Restart the network service if the paths match
  /etc/init.d/network restart
fi
